package com.campsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campsys.domain.TSysUser;
import com.campsys.domain.param.PageParam;
import com.campsys.domain.vo.AdminPageVo;

import java.util.List;

public interface UserMapper extends BaseMapper<TSysUser> {

    List<String> getPermissionsByUserId(Long userId);

    List<AdminPageVo> getAdminPage(Integer offset,Integer limit);

    Long getAdminPageTotal();

    Long getRoleIdByUserId(Long userId);

    Boolean addRoleIdByUserId(Long userId, Long roleId);

    String getNameByUserId(Long userId);

}
